package ch4;

import java.util.Scanner;

public class ZuoYe11 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请确定是否为会员：");
        String a = input.next();
        System.out.println("请输入购物金额：");
        double b = input.nextDouble();
        if (a.equals("是")) {
            if (b >= 200) {
                b = b * 0.75;
            } else {
                b = b * 0.8;
            }
        }else if (b >= 100) {
            b = b * 0.9;
        } else {
            b = b;
        }
        System.out.println("实际购物金额："+b+"元");
    }
}
